import request from '@/utils/request'

// 查询考勤统计列表
export function listReport(query) {
  return request({
    url: '/attend/report/list',
    method: 'get',
    params: query
  })
}

// 查询考勤统计列表
export function listDeptReport(query) {
    return request({
      url: '/attend/report/dept/list',
      method: 'get',
      params: query
    })
  }
// 查询考勤统计列表
export function listStaffReport(query) {
    return request({
      url: '/attend/report/staff/list',
      method: 'get',
      params: query
    })
  }



// 查询考勤统计详细
export function getReport(reportId) {
  return request({
    url: '/attend/report/' + reportId,
    method: 'get'
  })
}

// 新增考勤统计
export function addReport(data) {
  return request({
    url: '/attend/report',
    method: 'post',
    data: data
  })
}

// 修改考勤统计
export function updateReport(data) {
  return request({
    url: '/attend/report',
    method: 'put',
    data: data
  })
}

// 删除考勤统计
export function delReport(reportId) {
  return request({
    url: '/attend/report/' + reportId,
    method: 'delete'
  })
}
